import request from '@/utils/request'

// 获取被关联设备信息列表
export function associatedList(deviceAddr) {
  return request({
    url: '/hospital/warning/associated/getAssociatedList/' + deviceAddr,
    method: 'get'
  })
}

// 新增被关联设备信息列表
export function addAssociated(data) {
  return request({
    url: '/hospital/warning/associated/addAssociated',
    method: 'post',
    data:data
  })
}

// 移除被关联设备信息列表
export function deleteAssociated(data) {
  return request({
    url: '/hospital/warning/associated/deleteAssociated',
    method: 'delete',
    data:data
  })
}

